package com.haidechizi.fastadmin.modules.code.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.haidechizi.fastadmin.common.page.PageDto;
import com.haidechizi.fastadmin.common.utils.ObjectUtils;
import com.haidechizi.fastadmin.common.utils.PageInfo;
import com.haidechizi.fastadmin.modules.code.entity.DynamicCodeConfig;
import com.haidechizi.fastadmin.modules.code.dao.DynamicCodeConfigDao;
import com.haidechizi.fastadmin.modules.code.service.DynamicCodeConfigService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
/**
 * 动态资源Service
 * @author wangdejun
 * @version 2020-11-05
 */
@Service
@Transactional(readOnly = true)
public class DynamicCodeConfigServiceImpl extends ServiceImpl<DynamicCodeConfigDao, DynamicCodeConfig> implements DynamicCodeConfigService {



	/**
	 * 分页查询
	 *
	 * @param pageDto
	 * @param dynamicCodeConfig
	 * @return
	 */
	@Override
    public PageInfo findPage(PageDto pageDto, DynamicCodeConfig dynamicCodeConfig) {
        Page<DynamicCodeConfig> page = this.selectPage(
                pageDto.cover2Page(),
                new EntityWrapper<DynamicCodeConfig>()
        );


        return new PageInfo(page);
    }
	
}